const projectName = 'vue-template'

// 项目基本配置
module.exports = {
  PORT: 8080,
  distPath: `${__dirname}/../dist/${projectName}`, // 只针对生产环境
  publicPath: `/h5/${projectName}/`, // 只针对生产环境
  proxy: {
    '/api': {
      target: 'http://wfc2018-api.weddingee.com',
      changeOrigin: true,
      logs: true,
      onProxyRes(proxyRes) {
        /* eslint no-underscore-dangle: 0 */
        proxyRes.headers.target = proxyRes.client._host + proxyRes.client.parser.outgoing.path
      }
    }
  }
}
